home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / language / pixie.cpt / Pixie Scheme ƒ / Pixie Scheme Help / card_37377.txt < prev    next >
Encoding:
Text File  |  1991-01-07  |  741 b   |  21 lines

  1. -- card: 37377 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2692
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 10
  9. ----- text -----
  10.  
  11. The last expression assigns 3 to foo.  Now
  12.  
  13.               foo => 3
  14.  
  15. Let's look closely at how that works.  The macro call "(assign 3 to foo)", causes the
  16. entire expression, "(assign 3 to foo)" to be passed as the argument "form" to "(lambda (form) `(set! ,(cadddr form) ,(cadr form))))".  That procedure returns a list whose first element
  17. is "set!", whose second element is the cadddr of the form (namely the symbol "foo"), and whose third element is the cadr of the form, namely the number 3.  That list, "(set! foo 3)" 
  18.  
  19. -- part contents for background part 47
  20. ----- text -----
  21. 163